package com.gagakuai.bpm.common.aspect;

import com.gagakuai.bpm.common.annotation.BpmMsgTypeLog;
import com.gagakuai.bpm.utils.RedisUtil;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

/*
 * @program: bpm_server
 * @description: 死信处理
 * @author: houhong
 * @create: 2022-07-13 10:31
 */
@Slf4j
public class BpmDeadMesgAspect {


    private static final Logger logger = LoggerFactory.getLogger(BpmDeadMesgAspect.class);


    @Autowired
    private RedisTemplate redisTemplate;

    @Autowired
    private RedisUtil redisUtil;

    /*
     * @return {@link Object}
     * @Author houhong
     * @Description //TODO 做死信处理
     * @Date 3:35 下午 2022/3/10
     * @Param * @param formRepeatSubmitValidation
     */
    @Around("@annotation(bpmDeadMesgAspect)")
    public void checkCouldStartWorkFlow(BpmMsgTypeLog bpmDeadMesgAspect,ProceedingJoinPoint pj) throws Throwable {

        logger.info("===========针对不同的bpm业务场景记录数据类型===========");

        pj.proceed();

    }

}